from download.downloader import Downloader
from public.util import random_ua


class ItJuZiDownloader(Downloader):
    def get_headers(self, task):
        headers = {}
        headers[
            'User-Agent'] = random_ua()
        headers['Accept-Encoding'] = 'gzip, deflate, br'
        headers['Accept-Language'] = 'zh-CN,zh;q=0.8'
        headers['accept'] = 'application/json, text/plain, */*'
        headers['authorization'] = 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvd3d3Lml0anV6aS5jb21cL2FwaVwvdXNlcnNcL3VzZXJfaGVhZGVyX2luZm8iLCJpYXQiOjE2MDc0MDg0NDYsImV4cCI6MTYwNzU2Njc3NiwibmJmIjoxNjA3NTYzMTc2LCJqdGkiOiJhZmRPaGVUeVBidUZOQThFIiwic3ViIjo5MDQxODksInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjciLCJ1dWlkIjoiQjltNXcxIn0.MpTVbjE1dbjRZ9Rp1jyMbjq4yyPXY27o_kxYvJoRWMA'
        headers['Cookie'] = 'juzi_user=904189'
        headers['Cookie'] = 'juzi_token=Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvd3d3Lml0anV6aS5jb21cL2FwaVwvdXNlcnNcL3VzZXJfaGVhZGVyX2luZm8iLCJpYXQiOjE2MDc0MDg0NDYsImV4cCI6MTYwNzU2Njc3NiwibmJmIjoxNjA3NTYzMTc2LCJqdGkiOiJhZmRPaGVUeVBidUZOQThFIiwic3ViIjo5MDQxODksInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjciLCJ1dWlkIjoiQjltNXcxIn0.MpTVbjE1dbjRZ9Rp1jyMbjq4yyPXY27o_kxYvJoRWMA'
        headers['Cookie'] = '_ga=GA1.2.622434533.1607392829'
        headers['Cookie'] = '_gid=GA1.2.1762983386.1607392829'
        headers['Cookie'] = '_gat_gtag_UA_59006131_1=1'
        headers['Cookie'] = 'Hm_lvt_1c587ad486cdb6b962e94fc2002edf89=1607479119,1607563323,1607566522,1607566526'
        headers['Cookie'] = 'Hm_lpvt_1c587ad486cdb6b962e94fc2002edf89=1607566910'
        return headers
